<div class="col-xs-10 col-sm-10 col-md-8 col-lg-8">
    <h4>登陆账号</h4>
    <div class="pdt10">
        <%= simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
          <%= f.input :email,
                      label: "邮箱",
                      autofocus: true,
                      wrapper_html: {class: "form-group"},
                      input_html: { class: "form-control",
                                    id: "user_email",
                                    placeholder: "必填" }%>

          <%= f.input :password,
                      label: "密码",
                      wrapper_html: {class: "form-group"},
                      input_html: {class: "form-control",
                                   id: "user_password",
                                   placeholder: "必填"} %>

          <%= f.input :remember_me,
                      label: "记住我",
                      as: :boolean,
                      wrapper_html: {class: "checkbox"},
                      input_html: {id: "remember_me"} %>

          <button type="submit" class="btn btn-default">登 陆</button>
          <%= link_to "注册账号", new_registration_path(resource_name), class: "mgl20" %>
          <%= link_to "找回密码", new_password_path(resource_name), class: "mgl20" %>

        <% end %>
    </div>
</div>
